package org.swan.web.user.service;

import org.swan.web.user.bean.UserBean;

import java.util.List;
import java.util.Optional;

public interface UserService {

    Optional<UserBean> getUserById(long id);

    long addUser(UserBean UserBean);

    UserBean updateUser(UserBean UserBean);

    UserBean deleteUserById(long UserId);

    List<UserBean> list(int offset, int rows);
}
